<template>
	<gui-page :customHeader="false" :fullPage="true">
		<template v-slot:gBody>
			<view class="">
				<uni-table border stripe emptyText="暂无更多数据">
					<uni-tr>
						<uni-th align="center">编码</uni-th>
						<uni-th align="center">年份</uni-th>
						<uni-th align="center">	熟期组</uni-th>
						<uni-th align="center">组别代码</uni-th>
						<uni-th align="center">试点名称</uni-th>
						<uni-th align="center">田间编号</uni-th>
						<uni-th align="center">品种名称</uni-th>
						<uni-th align="center">种植序号</uni-th>
						<uni-th align="center">品种编号</uni-th>
						<uni-th align="center">供种人</uni-th>
						<uni-th align="center">创建时间</uni-th>
						<uni-th align="center">更新时间</uni-th>
					</uni-tr>
					<uni-tr v-for="(item, index) in dataRec.tableData" :key="item.id">
						<uni-td>{{ item.bianma }}</uni-td>
						<uni-td>{{ item.year }}</uni-td>
						<uni-td>{{ item.sqz }}</uni-td>
						<uni-td>{{ item.zbdm }}</uni-td>
						<uni-td>{{ item.name }}</uni-td>
						<uni-td>{{ item.tjbh }}</uni-td>
						<uni-td>{{ item.pzmc }}</uni-td>
						<uni-td>{{ item.zzxh }}</uni-td>
						<uni-td>{{ item.pzbh }}</uni-td>
						<uni-td>{{ item.zzr }}</uni-td>
						<uni-td>{{ item.createtime }}</uni-td>
						<uni-td>{{ item.updatetime }}</uni-td>
					</uni-tr>
				</uni-table>
			</view>
		</template>
	</gui-page>
</template>
<script setup>
import { Local } from '@utils/storage.js';
import graceJS from '@/Grace6/js/grace.js';
import imgArr from '@assets/js/export.js';
import { shuju_biaogeApi } from '@api/test.js';
import { reactive, ref, toRefs, onMounted, onActivated } from 'vue';
import { onShow, onLoad } from '@dcloudio/uni-app';

let imgArrRec = reactive(imgArr);
let dataRec = reactive({
	tableData: []
});

onShow(() => {});
onLoad(async (query) => {
	let res = await shuju_biaogeApi({ yuzhong_shiyan_id: query.id });
	res.data.forEach(item=>{
		item.createtime = graceJS.toDate(item.createtime,'str')
		item.updatetime = graceJS.toDate(item.updatetime,'str')
	})
	dataRec.tableData = res.data;
});
</script>
<style lang="scss" scoped></style>
